<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="../js/jquery-1.7.1.js"></script>

</head>
<body>
    <div>
        <div>
            <form name="a">
                asdf
            </form>
           <p id="a">safdgf</p></div>
    </div>
    <script>

        alert(document.getElementById("a").outerHTML);
    </script>
</body>
</html>